package fr.cie.blog.domainservice;

import java.util.List;

import fr.cie.blog.beans.Article;
import fr.cie.blog.beans.Comment;

/**
 * @author AetM
 * 
 */
public interface IServiceArticle extends IServiceGeneric<Article> {

	/**
	 * @param categoryId
	 *            Category's Id where the Article is
	 * @return the List of articles in this Category
	 */
	List<Article> findByCategory(long categoryId);

	/**
	 * @param comment
	 *            the Comment which is contained in the wanted Article
	 * @return the article owner of the selected Comment
	 */
	Article findByComment(Comment comment);

	/**
	 * @return the five last articles
	 */
	List<Article> findFiveLastArticles();

}